<ul id="tab_nav">
	<li><a>Auflisten</a></li>
	{if isset($grid_config.add.fields) and count($grid_config.add.fields) > 0}
	<li><a>Hinzuf&uuml;gen
	</a></li>
	{/if}
</ul>
<div id="devmod_loader" style="display:none;">
	loading...
</div>
<div id="tab_wrap"> 
	<div class="edit_tab">
	
		<!-- LIST -->	
			<form action="" method="post" name="" onsubmit="dmApp.multiDel(this); return false;">
			<div class="padding" style="padding:8px;">
			
				{if isset($grid_config.operator.del)}
					<input type="submit" class="submit" style="font-size:11px; height:24px;" value="{lang name="devmod_del_button"}" />
				{/if}
				
				<div class="devmod_handler_buttons">
					<img src="{SiteConfig::Domain}theme/{$grid_config.theme}/img/search.png" border="0" style="cursor:pointer;" onclick="$('grid_search').toggle(); $('search_str').focus(); $('grid_export').hide();" />
					<div style="position:absolute;"><div id="grid_search" style="display:none;"><div class="padding5">
						<input type="text" name="search_str" id="search_str" class="text" value="{if isset($search_str)}{$search_str}{else}Suchbegriff...{/if}" onfocus="if (this.value == 'Suchbegriff...') this.value = '';" style="width:300px;" />
						<input type="submit" name="search_submit" class="submit" value="{lang name="devmod_handler_search"}" onclick="dmApp.buttonSearch(); return false;" />
					</div></div></div>
				</div>
				<div class="devmod_handler_buttons">
					<img src="{SiteConfig::Domain}theme/{$grid_config.theme}/img/export.png" border="0" onclick="$('grid_export').toggle(); $('grid_search').hide();" />
					<div style="position:absolute;"><div id="grid_export" style="display:none;">
						<div class="text">{lang name="devmod_export_text"}</div>
						{foreach from=$grid_config.structure item=item key=key}
							<div class="export_item">
								<input type="checkbox" checked="checked" class="js_export_item" name="export_fields" value="{$key}"> {$key}
							</div>
						{/foreach}
						<div class="text">
						<input type="button" class="submit" onclick="dmApp.buttonExport('{lang name="devmod_export_download"}'); return false;" value="{lang name="devmod_export_button"}" />
						<div style="display:inline-block;" id="export_link"></div>
						</div>
					</div></div>
				</div>
			</div>
			{if isset($search_str) && $search_str neq null}
				<p>{lang name="devmod_search_info" args="{$search_str}"}</p>
			{/if}	
			
			<table border="1" class="devmod_list_table">
				<tr>
					{if isset($grid_config.operator.del)}
						<td align="center"><a href="javascript:dmApp.multiDelSelect()">+/-</a></td>
					{/if}
					{foreach from=$grid_config.list.fields item=val key=key}
						<td><strong>{if is_array($val)}{$val.de_CH}{else}{$val}{/if}</strong></td>
					{/foreach}
				</tr>
			{foreach from=$grid_view_obj item=item}
				<tr class="{cycle values="dark,bright"}">
					{if isset($grid_config.operator.del)}
						<td align="center"><input type="checkbox" class="checkbox_selectors" name="multi_del[]" value="{$item.{$grid_config.operator.del.param}}"></td>
					{/if}
					{foreach from=$item item=val key=key}
						<td>{$val}</td>
					{/foreach}
					{if isset($grid_config.operator)}
					{foreach from=$grid_config.operator item=op key=kop}
						<td><a href="javascript:dmApp.{$kop}({$item.{$op.param}});"><img src="{SiteConfig::Domain}theme/{$grid_config.theme}/{$op.icon}" border="0" alt="{$kop}" /></a></td>
					{/foreach}
					{/if}
				</tr>
			{/foreach}
			</table>
			</form>
		<!-- // LIST -->
			
	</div>

<!-- ADD -->

	{if isset($grid_config.add.fields) and count($grid_config.add.fields) > 0}
	<div class="edit_tab">
		<script>dmApp.add();</script>
		<div id="add_new_devmod_container">loading ...</div>
	</div>
	{/if}

<!-- //ADD -->	

</div>
<script>
	ydtab_load();
</script>